function move(ele, obj, cb){
  clearInterval(ele.t)
  ele.t = setInterval(()=>{
    let state = true;
    for(let key in obj){
      let now = parseInt(getStyle(ele, key));
      let speed = (obj[key] - now) / 10;
      speed = speed < 0 ? Math.floor(speed) : Math.ceil(speed);
      ele.style[key] = now + speed + "px";
      if(now !== obj[key]) state = false;
    }
    if(state){
      clearInterval(ele.t);
      cb && cb();
    }
  }, 30);
}
function getStyle(ele, attr){
  if(ele.currentStyle){
    return ele.currentStyle[attr];
  }else{
    return getComputedStyle(ele)[attr];
  }
}